﻿using System;
using System.Collections.Generic;
using System.Text;
using ProtoBuf;
namespace Model
{
    /// <summary>
    /// 一个消息
    /// </summary>
    public abstract partial class AMessage { }

    /// <summary>
    /// 一个请求消息
    /// </summary>
    [ProtoContract]
    public abstract partial class ARequest : AMessage
    {
        [ProtoMember(1000)]
        public uint RpcId;
    }

    /// <summary>
    /// 一个响应消息
    /// 服务端回应RPC消息需要教程这个抽象类
    /// </summary>
    [ProtoContract]
    public abstract partial class AResponse: AMessage
    {
        [ProtoMember(1000)]
        public uint RpcId;

        [ProtoMember(1001)]
        public int Error = 0;

        [ProtoMember(1002)]
        public string Message = "";
    }
}
